home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
h
/
hypercacheii.dms
/
hypercacheii.adf
/
ARexx
/
Stats.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-07-29
|
714b
|
31 lines
/*
* Ask HyperCache for information about how it is performing, and
* display a summary of this.
*/
Address 'HyperCache.scsi.device.0'
options results
Stats
statistics=result
parse var statistics ReadHits ReadMisses WriteHits WriteMisses
TotalReads=ReadHits+ReadMisses
TotalWrites=WriteHits+WriteMisses
say "Read Hits="ReadHits" Read Misses="ReadMisses" Total Reads="TotalReads
if (TotalReads~=0) then
say " Read hit ratio="ReadHits/TotalReads*100"%"
else
say " Read hit ratio=undefined"
say ""
say "Write Hits="WriteHits" Write Misses="WriteMisses" Total Writes="TotalWrites
if TotalWrites~=0 then
say " Write hit ratio="WriteHits/TotalWrites*100"%"
else
say " Write hit ratio=undefined"
say ""